package com.example.yan.java文件写入;
import java.io.File;
public class Main7 {


    public static void main(String[] args) throws Exception {
        File file = null;
        File dir = new File("D://");
        file = File.createTempFile
                ("JavaTemp", ".javatemp", dir);
        System.out.println(file.getPath());
    }


}
